package cn.cdyx.common.pojo;

import io.swagger.annotations.ApiModel;

/**
 * @Author Watermelon
 * @Date 2023-01-16 11:18
 *
 */
@ApiModel("错误码")
public class Code {

    public static final Integer SAVE_ERR = 1001; //保存错误
    public static final Integer DELETE_ERR = 1002;  //删除错误
    public static final Integer UPDATE_ERR = 1003;  //更新错误
    public static final Integer SELECT_ERR = 1004;  //查询错误
    public static final Integer BUSINESS_ERR = 2001;  //业务错误
    public static final Integer SYSTEM_ERR = 5001;  //系统错误
    public static final Integer SYSTEM_TIMEOUT_ERR = 5002;  //系统超时
    public static final Integer SYSTEM_UNKNOW_ERR = 5999;  //未知错误
    public static final Integer INTERFACE_NOTREGISTER = 6001;  //接口未注册
    public static final Integer INTERFACE_NOTREGISTER_CODE = 6002;  //接口注册码错误
    public static final String YDHL_INTERFACE_KEY="CDYXINTERFACEKEY";  //移动护理接口加密秘钥

    public static final String SYSTEM_DATATIME_PATTERN="yyyy-MM-dd HH:mm:ss";  //日期格式
}
